import request from "@/utils/request";

//获取售货机商品销量
export const getskuCollect = ({innerCode,start,end}) => request({
  method:'get',
  url:`/api/order-service/report/skuCollect/${innerCode}/${start}/${end}`
})

//获取一定时间范围之内的订单总数
export const getItemTotal = ({innerCode,start,end}) => request({
  method:'get',
  url:`/api/order-service/report/orderCount`,
  params:{
    start,
    end,
    innerCode,
  }
})
// 获取一定时间范围之内的收入
export const getItemTotalMoney = ({innerCode,start,end}) => request({
  method:'get',
  url:`/api/order-service/report/orderAmount`,
  params:{
    start,
    end,
    innerCode,
  }
})